import { Body, Controller, Get, Post } from '@nestjs/common';
import { ExperimentService } from './experiment.service';

@Controller('experiment')
export class ExperimentController {
  constructor(private readonly service: ExperimentService) {}

  // 获取全部列表数据
  @Get('query')
  queryList() {
    return this.service.queryListService();
  }

  // 新增
  @Post('add')
  add(@Body() params: any) {
    return this.service.addService(params);
  }
}
